package com.qdu.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.qdu.entity.Major;


public interface MajorMapper {
	Major selectMajorById(int id);
	
	boolean addMajor(@Param("major") Major major,@Param("acdmid") int acdmid,@Param("termId") int termId);
	
	boolean modifyMajor(@Param("major") Major major,@Param("acdmid") int acdmid,@Param("termId") int termId);
	
	boolean deleteMajorById(int id);
	
	List<Major> selectAllMajor();
	
	List<Major> selectMajorByacdmid(int id);
}
